package es.index.logs.parse;

import java.io.File;
import java.util.List;

public abstract class LogsParse {
	/**
	 * 表示log属性顺序, 控制logo解析顺序
	 */
	protected String[] _keys = null;
	
	public String[] get_keys() {
		return _keys;
	}

	public LogsParse keys(String[] _keys) {
		this._keys = _keys;
		return this;
	}

	/**
	 * 文件输入
	 * 
	 * @param file
	 */
	public abstract List<?> inputLogs(File file) throws Exception;

	/**
	 * StringBuffer 输入
	 * 
	 * @param buffer
	 */
	public abstract List<?> inputLogs(String name, StringBuffer buffer)
			throws Exception;

	/**
	 * 路径输入
	 * 
	 * @param path
	 */
	public abstract List<?> inputLogs(String path) throws Exception;

	/**
	 * 路径数组输入
	 * 
	 * @param paths
	 */
	public abstract List<?> inputLogs(String[] paths) throws Exception;
}
